package Table;

import java.util.ArrayList;

import javax.swing.JTable;

public class GetCommonTableAllValues {
	
	public static ArrayList GetAllValues(JTable table){
		ArrayList ValuesList = new ArrayList();
		int RowCount = table.getRowCount();
		int ColumnCount = table.getColumnCount();
		for(int x = 0; x < RowCount; x++){
			for(int y = 0;y < ColumnCount; y++){
				ValuesList.add(table.getValueAt(x, y));
			}		
		}
		return ValuesList;
	}
}
